/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
 * 说明：
 * 每日销售报表
 */
@Entity
@Table(name = "ruipengkj_view_day_sale_summary")
public class DaySaleSummaryView implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private Date HappenTime;//年度  月份
	
	private int count;//销售量
	
	private Double saleTotalMoney;//销售总金额
	
	private Double saleTotalCost;//销售总成本
	
	private Double saleProfit;//销售毛利润
	
	private Date endTime;
	
	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}
	
	@Transient
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@Id
	public Date getHappenTime() {
		return HappenTime;
	}

	public void setHappenTime(Date happenTime) {
		HappenTime = happenTime;
	}

	public Double getSaleTotalMoney() {
		return saleTotalMoney;
	}

	public void setSaleTotalMoney(Double saleTotalMoney) {
		if(saleTotalMoney==null){
			this.saleTotalMoney =0.00;
		}else{
			this.saleTotalMoney = saleTotalMoney;
		}
	}

	public Double getSaleTotalCost() {
		return saleTotalCost;
	}

	public void setSaleTotalCost(Double saleTotalCost) {
		if(saleTotalCost==null){
			this.saleTotalCost =0.00;
		}else{
			this.saleTotalCost = saleTotalCost;
		}
	}

	public Double getSaleProfit() {
		return saleProfit;
	}

	public void setSaleProfit(Double saleProfit) {
		if(saleProfit==null){
			this.saleProfit =0.00;
		}else{
			this.saleProfit = saleProfit;
		}
	}
	
}
 